import pandas as pd

def convert_to_timestamp(date_str):
    """将日期字符串转换为时间戳"""
    if date_str:
        return pd.Timestamp(date_str)
    return None
